/* ════════════════════════════════════════════════════════════════
   BODY & HEADER — CSS Variables & Global Styles
   ════════════════════════════════════════════════════════════════ */

/* ══ CSS VARIABLES — LIGHT MODE ══ */
:root {
  /* Background & Colors */
  --BodyBackground: #ffffff;
  --color1: #ffffff;
  --color2: #f7f7f7;
  --section1: #f8f8f8;
  --section2: #ffffff;
  --border: #e0e0e0;
  
  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #666666;
  --sectiontitlecolor: #333333;
  --th2color: #333333;
  --TP2color: #555555;
  
  /* Scrollbar */
  --webkit-scrollbar-track: #f7f7f7;
  --moz-scrollbar-thumb: #0e0e0e;
  
  /* Navbar */
  --navbarboxshadow: #0000000d;
  --navlinksactivecolor: #000000;
  --navlinksactiveafterbackground: #333;
  --navlinksacolor: #333;
  --navlinksacolorhover: #000000;
  
  /* Dropdown Menu */
  --dropmenubackground: white;
  --dropmenulicolor: rgb(15, 15, 15);
  --dropmenucolorhover: #000000;
  --dropmenumediaqueriebackground: #f1f1f1;
  
  /* Hamburger Menu */
  --hamburgericolor: #000000;
  
  /* Hero Section */
  --hero-overlay: rgba(19, 17, 17, 0.699);
  --hero-title: #ffffff;
  --hero-text: #f5f5f5;
  
  /* CTA Buttons */
  --cta-bg: rgba(255, 255, 255, 0.15);
  --cta-bg-hover: rgba(255, 255, 255, 0.25);
  --cta-border: rgba(255, 255, 255, 0.2);
  --cta-color: #ffffff;
  
  /* Grid Items */
  --griditembackground: #ffffff;
  --griditemcolorh2: #070707;
  --griditemcolorp: #333333;
  
  /* Profile & Contact */
  --profilimgborder: #000000;
  --conctactinfoA: #333333;
  --conctactinfoAHOVER: #000000;
  --Phonenumber: #181616;
  
  /* Primary Colors */
  --primary: #171718;
  --primary-light: #2c2c2c;
  
  /* Border Radius */
  --radius: 8px;
  --radius-lg: 14px;
  
  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.14);
  
  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Popup/Modal */
  --popup-bg: #ffffff;
  --popup-text: #333333;
  --popup-header-bg: linear-gradient(135deg, #111 0%, #2a2a2a 100%);
  --popup-shadow: rgba(0, 0, 0, 0.25);
  --popup-border: #e8e8e8;
  --popup-card-bg: #f7f7f7;
  --popup-icon-bg: rgba(0, 0, 0, 0.05);
  --popup-icon-color: #111111;
  --popup-button-bg: #111111;
  --popup-button-hover: #2a2a2a;
  --popup-close-bg: rgba(255, 255, 255, 0.15);
  --popup-close-hover: rgba(255, 255, 255, 0.3);
  
  /* Map Container */
  --mapcontainerboxshadow: #0000001a;
  
  /* Legacy Footer Variables (deprecated) */
  --footerbackground: #0f0f0f;
  --footerphrasecolor: rgba(255, 255, 255, 0.35);
  --footercolorcontent: rgba(255, 255, 255, 0.7);
  --footerbordertop: rgba(255, 255, 255, 0.08);
  --themetooglebtnbackground: #1a1a1a;
  --themetooglebtncolor: #ffffff;
  --themetooglebtnboxshadow: #0000000d;
  --themetooglebtnboxshadowhover: #ffffff33;
  
  /* Footer Variables (new) */
  --footer-bg: #ffffff;
  --footer-border: rgba(0, 0, 0, 0.123);
  --footer-logo-color: rgba(0, 0, 0, 0.72);
  --footer-desc-color: rgba(0, 0, 0, 0.637);
  --footer-label-color: rgba(0, 0, 0, 0.856);
  --footer-verse-color: rgba(0, 0, 0, 0.651);
  --footer-cite-color: rgba(0, 0, 0, 0.699);
  --footer-verse-border: rgba(0, 0, 0, 0.281);
  --footer-nav-color: rgba(0, 0, 0, 0.42);
  --footer-nav-hover: rgba(0, 0, 0, 0.85);
  --footer-copy-color: rgba(0, 0, 0, 0.692);
  --footer-toggle-border: rgba(0, 0, 0, 0.466);
  --footer-toggle-color: rgba(0, 0, 0, 0.664);
  --footer-toggle-hover-bg: rgba(0, 0, 0, 0.06);
  --footer-toggle-hover-color: rgba(0, 0, 0, 0.82);
}

/* ══ CSS VARIABLES — DARK MODE ══ */
body.dark-mode {
  /* Background & Colors */
  --BodyBackground: #131111;
  --color1: #1b1a1a;
  --color2: #131111;
  --section1: #161515;
  --section2: #1b1a1a;
  --border: #2a2a2a;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --sectiontitlecolor: #ffffff;
  --th2color: #ffffff;
  --TP2color: #ffffffde;
  
  /* Scrollbar */
  --webkit-scrollbar-track: #131111;
  --moz-scrollbar-thumb: #ffffff;
  
  /* Navbar */
  --navbarboxshadow: #ffffff0d;
  --navlinksactivecolor: #ffffff;
  --navlinksactiveafterbackground: #ffffff;
  --navlinksacolor: #fafafa;
  --navlinksacolorhover: #d4d4d4de;
  
  /* Dropdown Menu */
  --dropmenubackground: #1a1818;
  --dropmenulicolor: white;
  --dropmenucolorhover: #dddddd;
  --dropmenumediaqueriebackground: #222020;
  
  /* Hamburger Menu */
  --hamburgericolor: #ffffff;
  
  /* Grid Items */
  --griditembackground: #1b1a1a;
  --griditemcolorh2: #ffffff;
  --griditemcolorp: #cccccc;
  
  /* Profile & Contact */
  --profilimgborder: #f1f1f1;
  --conctactinfoA: #ffffffd3;
  --conctactinfoAHOVER: #ffffffbd;
  --Phonenumber: rgb(220, 220, 220);
  
  /* Popup/Modal */
  --popup-bg: #1b1a1a;
  --popup-text: #ffffff;
  --popup-header-bg: linear-gradient(135deg, #222324 0%, #1b1a1a 100%);
  --popup-shadow: #ffffff1a;
  --popup-border: #2a2a2a;
  --popup-card-bg: #131111;
  --popup-icon-bg: rgba(255, 255, 255, 0.06);
  --popup-icon-color: #ffffff;
  --popup-button-bg: #212122;
  --popup-button-hover: #1b1b1b;
  
  /* Legacy Footer Variables (deprecated) */
  --footerbackground: #080808;
  --footerphrasecolor: rgba(255, 255, 255, 0.25);
  --footercolorcontent: rgba(255, 255, 255, 0.55);
  --footerbordertop: rgba(255, 255, 255, 0.06);
  --themetooglebtnbackground: #1b1a1a;
  --themetooglebtncolor: #fafafa;
  
  /* Footer Variables (new) */
  --footer-bg: #0e0d0d;
  --footer-border: rgba(255, 255, 255, 0.219);
  --footer-logo-color: rgb(255, 255, 255);
  --footer-desc-color: rgba(255, 255, 255, 0.726);
  --footer-label-color: rgba(255, 255, 255, 0.63);
  --footer-verse-color: rgba(255, 255, 255, 0.719);
  --footer-cite-color: rgba(255, 255, 255, 0.671);
  --footer-verse-border: rgba(255, 255, 255, 0.05);
  --footer-nav-color: rgba(255, 255, 255, 0.767);
  --footer-nav-hover: rgba(255, 255, 255, 0.72);
  --footer-copy-color: rgba(255, 255, 255, 0.651);
  --footer-toggle-border: rgba(255, 255, 255, 0.10);
  --footer-toggle-color: rgba(255, 255, 255, 0.35);
  --footer-toggle-hover-bg: rgba(255, 255, 255, 0.07);
  --footer-toggle-hover-color: rgba(255, 255, 255, 0.78);
}

/* ════════════════════════════════════════════════════════════════
   GLOBAL RESET & BASE STYLES
   ════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--BodyBackground);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s;
}

body.noscroll {
  overflow: hidden;
}

/* ══ SCROLLBAR STYLING ══ */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-thumb {
  background: var(--moz-scrollbar-thumb);
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  background: var(--webkit-scrollbar-track);
}

/* Hide scrollbar on mobile */
@media (max-width: 900px) {
  * {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  *::-webkit-scrollbar {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   NAVBAR / HEADER
   ════════════════════════════════════════════════════════════════ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--section1);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  z-index: 1000;
  transition: .3s;
}

body.dark-mode header {
  background: var(--color2);
}

/* ══ NAVBAR CONTAINER ══ */
.navbar {
  max-width: 90%;
  margin: 0 auto;
  padding: .85rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ══ LOGO ══ */
.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--navlinksacolor);
  flex-shrink: 0;
}

.logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* ══ NAV LINKS ══ */
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
}

.nav-links > li > a {
  color: var(--navlinksacolor);
  font-weight: 500;
  font-size: .85rem;
  text-decoration: none;
  transition: .25s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > li > a:hover {
  color: var(--navlinksacolorhover);
}

.nav-links > li > a.active {
  color: var(--navlinksactivecolor);
}

.nav-links > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navlinksactiveafterbackground);
  border-radius: 2px;
}

/* ══ DROPDOWN MENU ══ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: var(--dropmenubackground);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: .4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .22s;
  z-index: 999;
  border: 1px solid var(--border);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: .6rem 1.1rem;
  font-size: .84rem;
  color: var(--dropmenulicolor);
  text-decoration: none;
  transition: .18s;
}

.dropdown-menu a:hover {
  background: var(--dropmenumediaqueriebackground);
  padding-left: 1.4rem;
}

/* ══ NAV CTA BUTTON ══ */
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: .82rem !important;
}

.nav-cta:hover {
  background: #333 !important;
}

.nav-cta.active::after {
  display: none !important;
}

/* ════════════════════════════════════════════════════════════════
   HAMBURGER MENU ICON
   ════════════════════════════════════════════════════════════════ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 10001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hamburgericolor);
  border-radius: 2px;
  transition: .35s cubic-bezier(.4, 0, .2, 1);
  transform-origin: center;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════════
   MOBILE MENU OVERLAY
   ════════════════════════════════════════════════════════════════ */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary);
  flex-direction: column;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .55s cubic-bezier(.4, 0, .2, 1);
}

.mobile-overlay.open {
  clip-path: circle(150% at calc(100% - 40px) 40px);
}

/* ══ MOBILE HEADER ══ */
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
}

.mobile-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.mobile-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .55);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 6px;
  transition: .2s;
  line-height: 1;
}

.mobile-close:hover {
  color: #fff;
}

/* ══ MOBILE NAVIGATION ══ */
.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .8rem 6%;
  gap: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-nav-item > a,
.mobile-nav-item > button.mobile-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .95rem 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .78);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: .02em;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: .18s;
}

.mobile-nav-item > a:hover,
.mobile-nav-item > button.mobile-parent:hover {
  color: #fff;
}

/* ══ MOBILE DROPDOWN ARROW ══ */
.mobile-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s;
}

.mobile-arrow svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-nav-item.sub-open > button .mobile-arrow {
  transform: rotate(180deg);
}

/* ══ MOBILE SUBMENU ══ */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s cubic-bezier(.4, 0, .2, 1);
}

.mobile-nav-item.sub-open .mobile-submenu {
  max-height: 400px;
}

.mobile-submenu a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: .6rem 0 .6rem .9rem;
  color: rgba(255, 255, 255, .38);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: .18s;
}

.mobile-submenu a:last-child {
  border-bottom: none;
}

.mobile-submenu a:hover {
  color: rgba(255, 255, 255, .78);
  padding-left: 1.2rem;
}

.mobile-submenu a::before {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  flex-shrink: 0;
}

/* ══ MOBILE FOOTER ══ */
.mobile-footer {
  padding: 1.2rem 6% 2.5rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-cta {
  display: block;
  text-align: center;
  padding: 12px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  transition: .2s;
}

.mobile-cta:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.mobile-cta.solid {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 500;
}

.mobile-cta.solid:hover {
  background: #e8e8e8;
}

/* ══ MOBILE SOCIALS ══ */
.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 4px;
}

.mobile-socials a {
  color: rgba(255, 255, 255, .22);
  font-size: .95rem;
  transition: .2s;
  text-decoration: none;
}

.mobile-socials a:hover {
  color: rgba(255, 255, 255, .65);
}

/* ══ MOBILE ADDRESS ══ */
.mobile-address {
  text-align: center;
  color: rgba(255, 255, 255, .16);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ════════════════════════════════════════════════════════════════ */

/* ══ TABLET & SMALL DESKTOP (1024px) ══ */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.2rem;
  }
  
  .nav-links > li > a {
    font-size: .8rem;
  }
}

/* ══ TABLET (900px) ══ */
@media (max-width: 900px) {
  .nav-links {
    display: none !important;
  }
  
  .hamburger {
    display: flex;
  }
  
  .mobile-overlay {
    display: flex;
  }
}

/* ══ MOBILE SMALL (380px) ══ */
@media (max-width: 380px) {
  .logo {
    font-size: .82rem;
  }
  
  .logo img {
    width: 26px;
    height: 26px;
  }
}